package com.shycloud.mido.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.member.api.entity.BasicGoodsInfo;
import com.shycloud.mido.member.api.entity.BasicShoppingBanner;
import com.shycloud.mido.member.api.vo.GoodsInfoVO;
import com.shycloud.mido.member.api.vo.GoodsListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Xiaoxing Yu
 * @date 2020/9/18
 **/
public interface BasicGoodsInfoMapper extends BaseMapper<BasicGoodsInfo> {

	List<GoodsInfoVO> selectEditableGoods();

	List<GoodsInfoVO> selectHardwareGoods(@Param("keyword") String keyword);

	List<GoodsInfoVO> selectHardwareGoodsV2(@Param("keyword") String keyword);

	List<GoodsInfoVO> selectVipGoods(@Param("keyword") String keyword);

	List<GoodsInfoVO> selectCouponList(@Param("keyword") String keyword);

	List<BasicShoppingBanner> getBannerImg(@Param("goodsId") Integer goodsId);

	IPage<GoodsListVO> getGoodsList(@Param("page") Page page, @Param("productId") Integer productId);

	List<GoodsListVO> getGoodsList(@Param("productId") Integer productId);
}
